Skip to content

fix(ui): improve rate keyboard accessibility#25

Open
wyf027 wants to merge 1 commit into
mainfrom
codex/rate-keyboard-a11y-2026-07-04
Open

fix(ui): improve rate keyboard accessibility#25
wyf027 wants to merge 1 commit into
mainfrom
codex/rate-keyboard-a11y-2026-07-04

Conversation

@wyf027

@wyf027 wyf027 commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add radiogroup / radio semantics to Rate so screen readers can announce the score choices consistently.
  • Add default keyboard support for Arrow keys, Home, and End, plus a keyboard prop to opt out.
  • Cover click clear, keyboard movement, disabled behavior, and ARIA state in Vitest.
  • Document Rate keyboard behavior and the new keyboard API.

Gap Notes

  • Ant Design Rate exposes keyboard operation support and allow-clear behavior.
  • WAI-ARIA's rating example models star ratings as a radio group with managed focus.
  • Nova UI's Rate previously rendered independent buttons, so arrow-key rating changes and grouped selection semantics were missing.

Validation

  • npm ci completed; npm reported existing audit findings (1 low, 4 moderate, 2 high) and Node 23 engine warnings for several packages.
  • npm run lint:ui
  • npm run typecheck:ui
  • npm run test:ui (24 files, 74 tests)
  • npm run build:ui
  • npm run build (includes VitePress docs; emitted existing Browserslist/chunk-size warnings)

@ecc-tools

ecc-tools Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant